package com.software.usercenter.service;

import com.software.usercenter.entity.Question;
import com.software.usercenter.entity.Record;
import com.software.usercenter.entity.User;

import java.util.List;

/**
 * @author : skyzo 11917
 * @date : 2023/4/24
 */
public interface AdminService {
    User login(User user);

    void publishQuestion(Question question);

    void deleteQuestion(Question question);

    void updateQuestion(Question question);

    User grantPermission(String userId, String permission);

    List<Record> autoJudgeQuestion(Integer questionId);
}
